<?php
	$pageCss = array('login');
	$this->load->view('header',array('_user'=>$_user,'pageTitle'=>'登录', 'pageCss'=>$pageCss));
?>
<div class="user-login">
	<div class="login">
		<form action="/user/login" method="post" id="userLoginForm">
			<fieldset>
				<legend>登入</legend>
				<div class="left-field">
					<div class="form-group user-email">
						<input type="text" class="form-control input-email" id="email" name="user[email]" placeholder="邮箱">
						<span class="input-errors"><?php echo isset($errorMessage) ? $errorMessage : '';?></span>
					</div>
					<div class="form-group user-pwd">
						<input type="password" class="form-control input-pwd" id="password" name="user[password]" placeholder="密码">
						<span class="input-errors"></span>
					</div>
					<div class="form-group">
						<button type="submit" class="input-submit">登录</button>
					</div>
				</div>
				<div class="right-field">
					<span>还没有账号?</span>
					<ul>
						<li>现在注册</li>
						<li>忘了密码?</li>
					</ul>
					<span>使用第三方帐号登录</span>
					<ul>
						<li>新浪微博</li>
						<li>QQ账号</li>
					</ul>
				</div>
			</fieldset>
		</form>
	</div>
</div>
<?php
	$pageJs = array('jquery-1.8.3.min', 'login');
	$this->load->view('footer', array('pageJs'=>$pageJs));?>